package br.com.basili.teste;

import java.util.HashSet;

import br.com.basili.dao.ResearcherDAO;
import br.com.basili.entity.Identification;
import br.com.basili.entity.Researcher;


public class testeDao {
	
	public static void main(String[] args) {
		Identification protocol = new Identification();
		protocol.setResearchers(new HashSet<Researcher>());
		Researcher r =  new Researcher();
		ResearcherDAO dao = new ResearcherDAO();
		try
		{
			dao.salvar(r);
		}
		catch(Exception e)
		{
			System.out.println("Erro em salvar protocolo \n" + e.getMessage());
		}
	}

}
